package com.zzl.finance.order.feign;

import com.zzl.apidoc.annotation.ApidocParam;
import com.zzl.finance.order.dto.feigndto.TicketFinanceOrderDto;
import com.zzl.general.common.feign.config.FeignClientsConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户中心的feign接口
 */
@FeignClient(value = "bondsticket", configuration = FeignClientsConfig.class)
public interface BondsTicketFeign {

    /**
     * 信息
     */
    @GetMapping("bondsticket/feign/getFinanceByTicketNo/{ticketNo}")
    TicketFinanceOrderDto getFinanceByTicketNo(@ApidocParam(name = "ticketNo", description = "融资凭证编号", required = true) @PathVariable("ticketNo") String ticketNo);

}
